package day03;

public class OperDemo6 {
    public static void main(String[] args) {
        int num = 5;
        int flag = num>0?1:-1;
        System.out.println(flag);

        int a = 110 , b = 100;
        int max = a>b?a:b;
        System.out.println("max = "+max);

        int age1 = 18,age2 = 28;
        int old =age1>age2?age1:age2;
        System.out.println("年纪最大"+old+"岁");


    }
}
